﻿using Model;
using DLL;
using System.Data;


namespace BLL
{
    public class LogBll
    {
        readonly LogDal logDal = new LogDal();
        public bool AddLogInfo(LogEntity logInfo)
        {
            return logDal.addLogInfo(logInfo);
        }

        public DataTable selectLogInfo(string StartTime, string EndTime, string ip)
        {
            DataTable dt = logDal.selectLogInfo(StartTime, EndTime, ip);
            return dt;
        }
        /// <summary>
        /// 查询SetUp表
        /// </summary>
        /// <returns></returns>
        public DataTable QuerySetUpBll()
        {
            DataTable dt = new LogDal().QuerySetUpDal();
            return dt;
        }

        #region 只通过时间来查询错误日志--DataTable selectNoLogInfo(String StartTime, String EndTime)--杨光彩--2018-3-1 18:49:38
        /// <summary>
        /// 只通过时间来查询错误日志
        /// </summary>
        /// <param name="StartTime"></param>
        /// <param name="EndTime"></param>
        /// <returns></returns>
        public DataTable selectNoLogInfo(string StartTime, string EndTime)
        {
            DataTable dt = logDal.selectNoLogInfo(StartTime, EndTime);
            return dt;
        }
        #endregion

    }
}
